Skip to content

Back up a dataset and restore it ​

A dataset can leave the platform and come back whole: its images in a ZIP, its labels in a CSV. Keep the pair as a backup, or upload it into another project to work there. In this guide you back up a dataset of biscuit packs, with a box around each biscuit, and restore it into an empty dataset.

What you will learn

  • How to download the images and the annotations of a dataset
  • How to put them together into one file
  • How to restore them, in this project or in another one

Before you start

Downloading is explained in more detail in Download a dataset or selected images, and ZIPs with annotations in Upload a ZIP with tags and annotations.

1. Download the images ​

Open the dataset, click «More options» and choose «Download». Leave the filters as they come, so that every image goes in, and click «Download». The ZIP keeps the original images, in a folder per tag.

Download the images

2. Save the ZIP ​

Click «Download». The platform prepares the ZIP and your browser saves it.

3. Download the annotations ​

The ZIP holds the images, not their boxes. To take the boxes too, click «Labeling», open the menu next to the name of the dataset and choose «Download CSV».

Download the annotations

4. Save the CSV ​

The CSV has one line per box: the set of the image, its file, the tag and the corners of the box. Keep «Include pending images» ticked, so that images without boxes are listed too, and click «Download».

5. Put the CSV in the ZIP ​

With your file manager, add the CSV to the ZIP, next to the folders of images. That file is the backup: the images and their labels together.

convert_biscuit_packs_backup.zip
├── biscuit/
│   ├── biscuits_001.jpg
│   └── …
└── rp-obj-convert_biscuit_packs.csv

6. Create a dataset of the same type ​

Sign in to the project where the dataset has to go, this one or another, and create an empty dataset of the same type: here object detection with normal boxes. See Create a dataset.

Create a dataset of the same type

7. Open its «Upload» tab ​

Click «Create», choose «Normal bounding box» and click «Create» again. Open the new dataset and go to the «Upload» tab.

Open its «Upload» tab

8. Upload the backup ​

Click «Select Files» and choose the backup. Before uploading, the platform counts the images and the annotation files: here five images and one CSV. The folders of the ZIP are ignored in an object detection dataset; the CSV says where each box goes.

Upload the backup

9. Restore it ​

Click «Upload» and wait for the summary.

Restore it

10. Check the boxes ​

Click «Labeling», reload the grid from the menu next to the name of the dataset (the tags an upload creates show after a reload) and open an image. Every biscuit has its box and its tag, as in the original dataset.

Check the boxes

What comes back, by type of dataset ​

Dataset typeWhat to keepWhat comes back
ClassificationThe ZIPImages and tags: each folder of the ZIP is a tag
Object detectionThe ZIP with the CSV insideImages, boxes and tags
Oriented boxes, text recognitionThe ZIP with the CSV inside, as for object detectionImages, boxes and tags, or the text of each box
Image segmentation, anomaly detectionThe ZIPOnly the images. The masks travel as pictures in «Masks» folders, which an upload does not read as masks: take those folders out of the ZIP before uploading it, or they arrive as images

Good to know ​

  • The split does not come back. The CSV says which images were for training, validation and test, but an upload puts them all in the division chosen in «Image destination». Set it again, or let the next training split them.
  • Groups and comments stay behind. Tick «Include GROUP column» in «Download CSV» to keep a record of the groups; an upload does not read it.
  • Do not use the CSV with the GROUP column for a restore: the extra column shifts the others.
  • The link to a ZIP lasts seven days, and the ZIP itself is yours to keep as long as you want.

Next steps ​

Recorded on Rosepetal release 1.8.15.